package com.soft.customer.controller;

import com.soft.customer.feign.ProductFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CustomerController {


    @Autowired
    private ProductFeign productFeign;

    @GetMapping("/")
    public String index(){
        return " customer.." + productFeign.index();
    }
}

